{php include wl_template('common/header');}
<ul class="nav nav-tabs">
    <li class="active"><a href="javascript:;">已发起集call活动列表</a></li>
</ul>
<div class="app-content">
    <div class="app-filter">
        <div class="filter-list">
            <form class="form-horizontal" action="{php echo web_url('call/call/callLaunchList')}" method="post">
                <div class="form-group">
                    <div class="col-sm-2 control-label">活动名称</div>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="name" value="{$name}" placeholder="活动名称/发起人">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <div class="col-sm-6">
                        <div class="input-group">
                            <button class="btn btn-primary" type="submit" >搜索</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="app-table-list">
        <div id="list" class="panel tab-pane panel-default">
            <div class="table-responsive">
                <table class="table table-hover table-bordered">
                    <thead>
                        <tr>
                            <th class="text-center">发起人</th>
                            <th class="text-center">奖品名称</th>
                            <th class="text-center">活动名称</th>
                            <th class="text-center">发起时间</th>
                            <th class="text-center">截止时间</th>
                            <th class="text-center">收集数量</th>
                            <th class="text-center">已收集数量</th>
                            <th class="text-center">剩余数量</th>
                            <th class="text-center">状态</th>
                        </tr>
                    </thead>
                    <tbody>
                    {loop $list $k $v}
                        <tr class="text-center">
                            <td>{$v['nickname']}</td>
                            <td>{$v['prize_name']}</td>
                            <td>{$v['title']}</td>
                            <td>{php echo date("Y-m-d H:i:s",$v['start_time'])}</td>
                            <td>{php echo date("Y-m-d H:i:s",$v['receive_time'])}</td>
                            <td>{$v['number']}</td>
                            <td>{$v['collect_number']}</td>
                            <td>{$v['surplus_number']}</td>
                            <td>{if $v['receive_time'] > time()}正常{else}已过期{/if}</td>
                        </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>
        </div>
        {$pager}
    </div>
</div>
{php include wl_template('common/footer');}